﻿<%@ Page Title="Account" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="CustomerDetails.aspx.cs" Inherits="CustomerDetails" %>

<%@ Register Src="Controls/TryUser.ascx" TagName="TryUser" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <style type="text/css">
        .potay
        {
            width: 162px;
            color: White;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div class="title">
        Account Detail
    </div>
    
    <div class="prod">
        <asp:Label ID="Label1" runat="server" Font-Size="18px" ForeColor="White" 
                Text="Name: "></asp:Label>  
        <div align="left" 
            style="font-family: Arial, Helvetica, sans-serif; font-size: 22px; font-weight: lighter; color: #FF0000; font-style: normal;"> 
            <%=Page.User.Identity.Name %>
            
        </div>    
        <asp:FormView ID="FormView2" runat="server" DataSourceID="SqlDataSource2" 
            EnableModelValidation="True" CssClass="price">
            <EditItemTemplate>
                Email:<br />
                <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
                <br />
                <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True" CommandName="Update"
                    Text="Update" />
                &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server" CausesValidation="False"
                    CommandName="Cancel" Text="Cancel" />
            </EditItemTemplate>
            <InsertItemTemplate>
                Email:
                <asp:TextBox ID="EmailTextBox" runat="server" Text='<%# Bind("Email") %>' />
                <br />
                <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                    Text="Insert" />
                &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                    CommandName="Cancel" Text="Cancel" />
            </InsertItemTemplate>
            <ItemTemplate>
                Email:
                <asp:Label ID="EmailLabel" runat="server" Text='<%# Bind("Email") %>' />
                <br />
            </ItemTemplate>
        </asp:FormView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True"
            ProviderName="System.Data.SqlClient" SelectCommand="SELECT [Email] FROM [vw_aspnet_MembershipUsers] WHERE ([UserName] = @UserName)">
            <SelectParameters>
                <asp:Parameter Name="UserName" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        
        <asp:ChangePassword ID="ChangePassword1" runat="server" ContinueDestinationPageUrl="~/Default.aspx" 
            Width="486px">
            <ChangePasswordButtonStyle Width="130px" />
            <PasswordHintStyle BackColor="White" BorderColor="White" />
            <TextBoxStyle BackColor="White" />
            <TitleTextStyle Font-Names="Arial Unicode MS" />
        </asp:ChangePassword>
        <br />
    </div>
</asp:Content>
